package com.zycfc.zsf.boot.serializer.autoconfigure;

import com.zycfc.zsf.boot.serializer.*;
import com.zycfc.zsf.boot.serializer.hessian.*;
import org.springframework.context.annotation.*;
import org.springframework.boot.autoconfigure.condition.*;
import org.slf4j.*;

@Configuration
public class SerializerAutoConfiguration
{
    private static final Logger log;
    
    @Bean
    @ConditionalOnMissingBean({ ISerializer.class })
    public ISerializer zsfSerializer() {
        final ISerializer res = new HessianSerializer();
        SerializerAutoConfiguration.log.info("^_^Serializer\u7ec4\u4ef6\u52a0\u8f7d\u6210\u529f^_^");
        return res;
    }
    
    static {
        log = LoggerFactory.getLogger((Class)SerializerAutoConfiguration.class);
    }
}
